'''
Created on Feb 23, 2011

@author: Bogdan Mata
'''
print("Type integers, each followed by Enter; or just Enter to finish")
sum = 0
lowest = None
highest = None
count = 0
numbers = []
while True:
    line = input("enter a number or Enter to finish: ")
    if line:
        try:
            number = int(line)
        except ValueError as err:
            print(err)
            continue
        numbers += [number]
        sum += number
        if lowest is None or lowest > number:
            lowest = number
        if highest is None or highest < number:
            highest = number
        count += 1
    else:
        break
if count:
    print(numbers)
    print("count =", count, "sum =", sum, "lowest = ", lowest, "highest = ", highest, "mean =", sum / count)